/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.webos.java.base.fs;

import org.json.JSONObject;
import org.webos.java.explorer.Explorer;

/**
 *
 * @author Kostya
 */
public interface FileType {

    public String getCode();
    public String getIcon();
    public boolean isSystemType();
    public String getName();
    public String getDescription();
    public boolean isPlainFile();
    public Object getEditor(FileDescriptor file, Explorer explorer);
    public String getViewerClass(FileDescriptor aFile);
    public JSONObject getViewer(FileDescriptor file);
    public JSONObject messageFromViewer(JSONObject aData, FileDescriptor aFile, Explorer explorer);
    public String[] getExtensions();
}
